# -*- coding: binary -*-

module Msf

# Mini-mixin for making SMBUser/SMBPass/SMBDomain regular options vs advanced
# Included when the module needs credentials to function
module Exploit::Remote::SMB::Client::Authenticated

  include Msf::Exploit::Remote::SMB::Client

  def initialize(info = {})
    super
    register_options(
      [
        OptString.new('SMBUser', [ false, 'The username to authenticate as', '']),
        OptString.new('SMBPass', [ false, 'The password for the specified username', '']),
        OptString.new('SMBDomain',  [ false, 'The Windows domain to use for authentication', '.']),
      ], Msf::Exploit::Remote::SMB::Client::Authenticated)
  end
end

end
